package com.service.imput;

import com.dao.SupplierDao;
import com.entity.Supplier;
import com.service.SupplierService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("SupplierService")
public class SupplierServiceImp implements SupplierService {
    @Resource
    private SupplierDao supplierDao;

    @Override
    public List<Supplier> finSupplier() {
        return supplierDao.finSupplier();
    }

    @Override
    public int insert(Supplier supplier) {
        return supplierDao.inseSupplierDao(supplier);
    }

    @Override
    public Supplier supplierId(int id) {
        return supplierDao.supplierId(id);
    }

    @Override
    public int updSupplierDao(Supplier supplier) {
        return supplierDao.updSupplierDao(supplier);
    }

    @Override
    public int insertSupplier(Supplier supplier) {
        return supplierDao.insertSupplier(supplier);
    }

    @Override
    public List<Supplier> listSupplier(String supCode, String supName) {
        return supplierDao.listSupplier(supCode,supName);
    }
}
